﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using ViewInterfaces;

/// <summary>
/// Created By : Nguyen Dinh Tuong Uyen
/// Created Date : 02/21/2012
/// Description : Presenter for Showing top 4 news
/// </summary>

namespace Presenter
{
    public class ShowTop4NewsPresenter : ShowNewsBasePresenter
    {
        public ShowTop4NewsPresenter(INewsView p_iView, NewsDAO p_newsDao)
            : base(p_iView,p_newsDao)
        {
        }

        public override void Init()
        {
            view.dt = newsDao.GetTopNews(view.numTop);
        }
    }
}
